<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>联系我们 - 金零</title>
    <meta name="description" content="金零 - 联系我们页面">
    <meta name="keywords" content="金零,联系我们,社交平台">
    <meta name="author" content="金零">
    <link rel="icon" type="image/x-icon" href="../../favicon.ico">
    <link href="../../static/element/font-awesome.css" rel="stylesheet">
    <link href="../../static/fonts/inter.css" rel="stylesheet">
    <link href="../../static/css/tailwind.min.css" rel="stylesheet">
    
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            background: #111827;
            color: #ffffff;
            min-height: 100vh;
        }
        
        .hero-bg {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            position: relative;
            overflow: hidden;
        }
        
        .hero-bg::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.2);
            z-index: 1;
        }
        
        .hero-bg > * {
            position: relative;
            z-index: 2;
        }
        
        .card {
            background: #1f2937;
            border: 1px solid #374151;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
            border-color: #4f46e5;
        }
        
        .nav-shadow {
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
        }
        
        .btn-primary:active {
            transform: translateY(0);
        }
        
        .btn-primary::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        
        .btn-primary:active::before {
            width: 300px;
            height: 300px;
        }
        
        .btn-secondary {
            background: transparent;
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }
        
        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
        }
        
        .nav-link {
            color: #d1d5db;
            text-decoration: none;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 6px;
            transition: all 0.3s ease;
        }
        
        .nav-link:hover {
            color: #60a5fa;
            background: rgba(96, 165, 250, 0.1);
        }
        
        .warning-banner {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: white;
            text-align: center;
            padding: 12px;
            font-weight: 500;
            display: none; /* 默认隐藏 */
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
            border-radius: 8px;
            margin: 0 auto;
            max-width: 600px;
        }
        
        .success-banner {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            text-align: center;
            padding: 12px;
            font-weight: 500;
            display: none; /* 默认隐藏 */
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
            border-radius: 8px;
            margin: 0 auto;
            max-width: 600px;
        }
    </style>
</head>
<body class="bg-gray-900 min-h-screen">
    <!-- 导航栏 -->
    <header class="bg-gray-800 fixed w-full top-0 z-50 nav-shadow">
        <nav class="max-w-6xl mx-auto px-4 py-4">
            <div class="flex items-center justify-between">
                <div class="flex items-center">
                    <div class="w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center mr-4">
                        <i class="fa fa-comments text-white text-lg"></i>
                    </div>
                    <span class="text-2xl font-bold text-white">金零</span>
                </div>
                <div class="hidden md:flex space-x-2">
                    <a href="../../index.html" class="nav-link">首页</a>
                    <a href="helloWorld.html" class="nav-link bg-blue-500/20 text-blue-400">联系我们</a>
                </div>
            </div>
        </nav>
    </header>

    <!-- 站点检测横幅 -->
    <div id="siteStatusBanner" class="mt-24 mb-6 warning-banner text-white text-center py-3 text-sm font-medium mx-4">
        <span>正在检测站点...</span>
    </div>
    
    <!-- 主要内容区域 -->
    <section class="py-20 bg-gray-900">
        <div class="max-w-4xl mx-auto px-4">
            <div class="text-center mb-12">
                <h1 class="text-4xl font-bold text-white mb-6 bg-gradient-to-r from-white to-blue-200 bg-clip-text text-transparent">
                    联系我们
                </h1>
                <p class="text-gray-300 text-lg">扫描二维码添加微信，或直接访问主站点</p>
                <!-- 客服在线状态标记 -->
                <div id="serviceStatus" class="mt-4 inline-flex items-center px-4 py-2 rounded-full text-sm font-medium">
                    <span id="serviceStatusIcon" class="mr-2"></span>
                    <span id="serviceStatusText">检测中...</span>
                </div>
            </div>
            
            <div class="flex flex-col items-center">
                <!-- 微信二维码 -->
                <div class="card mb-10 p-6 bg-gray-800 border-gray-700" style="width: fit-content; max-width: 320px;">
                    <div class="bg-white p-4 rounded-lg shadow-lg w-full flex justify-center">
                        <img src="../../static/images/wx.jpg" alt="微信二维码" class="max-w-full h-auto rounded cursor-pointer" id="wxQRCode">
                    </div>
                    <p class="text-center text-xl font-medium text-white mt-6 mb-2">官方客服微信</p>
                    <p class="text-center text-gray-400 text-sm">扫码添加好友，获取更多信息</p>
                    <p class="text-center text-gray-400 text-xs mt-2"><i class="fa fa-hand-pointer-o mr-1"></i>点击图片可直接跳转</p>
                </div>
                
                <!-- 站点跳转按钮 -->
                <div id="siteButtonsContainer" class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-10 w-full max-w-2xl">
                    <!-- 主站点按钮 -->
                    <div class="flex flex-col">
                        <a href="https://2025.task2030.xyz/" target="_blank" class="btn-primary text-lg py-6 px-8 transition-all duration-300 ease-in-out text-center" id="mainSiteButton">
                            <i class="fa fa-rocket mr-3"></i>主站点
                        </a>
                        <div class="site-status" id="mainSiteButtonStatus">
                            <i class="fa fa-spinner fa-spin mr-2"></i>检测中...
                        </div>
                    </div>
                    <!-- 副站点按钮 -->
                    <div class="flex flex-col">
                        <a href="https://zjnh.yamhk.top/" target="_blank" class="btn-secondary text-lg py-6 px-8 transition-all duration-300 ease-in-out text-center" id="backupSiteButton">
                            <i class="fa fa-shield mr-3"></i>副站点
                        </a>
                        <div class="site-status" id="backupSiteButtonStatus">
                            <i class="fa fa-spinner fa-spin mr-2"></i>检测中...
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 页面底部 -->
    <footer class="bg-gray-900 text-white py-10">
        <div class="max-w-4xl mx-auto px-4 text-center">
            <p class="text-gray-500">© 2024 金零 保留所有权</p>
        </div>
    </footer>

    <!-- JavaScript -->
    <script src="../../js/redirect.js"></script>
    <script>
        // 页面加载完成后执行
        window.addEventListener('DOMContentLoaded', function() {
            // 检测所有站点的可达性
            RedirectUtils.checkAllSites();
            
            // 设置微信二维码点击跳转
            RedirectUtils.setupWxQRCodeRedirect();
            
            // 更新站点按钮的href属性，确保使用当前页面的参数
            RedirectUtils.updateSiteButtonUrls();
            
            // 处理自动跳转逻辑（统一12秒后跳转）
            RedirectUtils.handleAutoRedirect({
                bannerId: 'siteStatusBanner',
                delay: 12000,
                target: '_blank',
                defaultParams: {t: '000', topic: '30000000'}
            });
            
            // 导航栏滚动效果
            window.addEventListener('scroll', function() {
                const header = document.querySelector('header');
                if (window.scrollY > 10) {
                    header.style.background = 'rgba(31, 41, 55, 0.95)';
                    header.style.backdropFilter = 'blur(20px)';
                } else {
                    header.style.background = 'rgba(31, 41, 55, 1)';
                    header.style.backdropFilter = 'blur(10px)';
                }
            });
        });
    </script>
</body>
</html>